<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use frontend\assets\AppAsset;
$this->title = 'About';
$this->params['breadcrumbs'][] = $this->title;
AppAsset::addScript($this,'@web/js/jquery-ui.custom.min.js');
$cssString = ".gray-bg{color:red;}";
$this->registerCss($cssString);
AppAsset::addCss($this,'@web/css/adc.css');
?>
<div class="site-about">
    <h1><?= Html::encode($this->title) ?></h1>

    <p>This is the About page. You may modify the following file to customize its content:</p>

    <code><?= __FILE__ ?></code>

    <div id="mybutton">点我弹出OK</div>

    <?php $this->beginBlock('tt') ?>
    $(function($) {
    $('#mybutton').click(function() {
    alert('OK');
    });
    });
    <?php $this->endBlock() ?>
    <?php $this->registerJs($this->blocks['tt'], \yii\web\View::POS_END); ?>
    <?php
    $this->registerJs(
        'alert(1)'
    ,\yii\web\View::POS_LOAD);
    ?>
</div>
